package tgc.edu.examxy.service;

import java.util.List;
import java.util.UUID;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import tgc.edu.examxy.custom.CommonService;
import tgc.edu.examxy.entity.Checkingin;
import tgc.edu.examxy.entity.Student;
import tgc.edu.examxy.repository.CheckingRepository;
@Service
public class CheckinginService extends CommonService<Checkingin, UUID>{
	@Autowired
	private CheckingRepository dao;
	
	public List<Checkingin> findByCurriculumPlanAndBjuuid(UUID curriculumPlanid, String string) {
		return dao.findByCurriculumPlanAndBjuuid(curriculumPlanid,string);
	}

	public Checkingin findByCurriculumPlanAndStudentAndBjuuid(UUID fromString, Student students, String string) {
		return dao.findByCurriculumPlanAndStudentAndBjuuid(fromString,students,string);
	}

	public Checkingin findByStudentAndCurriculumPlanAndDatesAndBjuuid(Student students, UUID id, String data, String string) {
		return dao.findByStudentAndCurriculumPlanAndDatesAndBjuuid(students,id,data,string);
	}

	public List<Checkingin>  findByStudentAndDatesAndIsReach(Student students, String data, String object) {
		return dao.findByStudentAndDatesAndIsReach(students,data,object);
	}
	
	public List<Checkingin> findByStudentAndDates(Student students, String data) {
		return dao.findByStudentAndDates(students,data);
	}



}
